<template>
	<view class="content">
		<button @click="testco()">请求云对象的方法</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
			}
		},
		methods: {
			async testco() { // 注意异步
				const helloco = uniCloud.importObject('helloco') // 导入云对象
				let res = await helloco.say("test1111")
				uni.showModal({
					content:JSON.stringify(res),
					showCancel:false
				})
				
			}
		}
	}
</script>
